/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package fonts;

import java.awt.Font;
import java.io.InputStream;

public class InternalFont {

    public static final String VERDANA = "verdana.ttf";
    public static final String VERDANA_B = "verdanab.ttf";
    public static final String VERDANA_I = "verdanai.ttf";
    public static final String VERDANA_BI = "verdanaz.ttf";
//    public static final String DROIDSANS = "DroidSans.ttf";
//    public static final String ROBOTO = "Roboto-Regular.ttf";
//    public static final String MYRIAD = "MyriadPro-Regular.otf";
//     public static final String DroidSansFallbackFull = "DroidSansFallbackFull.ttf";
//public static final String GTA = "gtaweap3.ttf";

    public static Font getFont(String fontName, int style, int size) {
        Font font = null;
        try {
            InputStream fontStream = InternalFont.class.getResourceAsStream(fontName);
            font = Font.createFont(Font.TRUETYPE_FONT, fontStream);
            font = font.deriveFont(style, size);
            
            fontStream.close();
        } catch (Exception ex) {
            System.out.println(ex.getMessage());
        }
        return font;
    }
}
